//此方法用于登陆之后显示用户头像以及用户名相关信息
function getsession(){
    var url="logisticsModule/islogin";
    $.get(url,null,function (resp){
        let li = "<ul class=\"nav\">";
        for (let i = 0; i < resp.data2.length; i++) {
            li+="<li>\n" +
                "                        <a class=\"menu-content\" href=\"#\">\n" +
                "                            <i class=\"fa fa-pencil-square-o fa-fw\"></i>\n" +
                "                            <span class=\"nav-label\">"+resp.data2[i].modName+"</span>\n" +
                "                            <span class=\"fa arrow\"></span>\n" +
                "                        </a>";

            for(let j = 0;j<resp.data2[i].children.length;j++){
                li+="                        <ul class=\"nav nav-second-level collapse\">\n" +
                    "                            <li>\n" +
                    "                                <a href="+resp.data2[i].children[j].modUrl+" class=\"menuItem\" data-refresh=\"false\">\n" +
                    "                                    <i class=\"fa fa-address-book fa-fw\"></i>\n" +
                    "                                    "+resp.data2[i].children[j].modName+"\n" +
                    "                                </a>\n" +
                    "                            </li>\n" +
                    "                        </ul>\n"
            }
            "                    <li>"
        }
        li+="</ul>"
        $("#menu_1").append(li);
    },"json")
}
getsession();